<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
		<meta name="renderer" content="webkit">

		<link rel="shortcut icon" href="/assets/img/favicon.ico" />
		<!-- Loading Bootstrap -->
		<link href="./css/backend.min.css?v=1.0.4" rel="stylesheet">
		<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
		<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
		<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
		<script type="text/javascript">
			var require = {
				config: {
					"site": {
						"name": "\u604b\u7a7a\u62db\u5546\u7ba1\u7406\u7cfb\u7edf",
						"version": "1.0.4",
						"cdnurl": ""
					},
					"upload": {
						"cdnurl": "",
						"uploadurl": "ajax\/upload",
						"bucket": "local",
						"maxsize": "10mb",
						"mimetype": "jpg,png,bmp,jpeg,gif,zip,rar,xls,xlsx",
						"multipart": [],
						"multiple": false
					},
					"modulename": "admin",
					"controllername": "general.config",
					"actionname": "index",
					"jsname": "backend\/general\/config",
					"moduleurl": "\/admin",
					"language": "zh-cn",
					"fastadmin": {
						"usercenter": false,
						"login_captcha": true,
						"login_failure_retry": true,
						"login_unique": false,
						"login_background": "\/assets\/img\/loginbg.jpg",
						"multiplenav": false,
						"checkupdate": false,
						"version": "1.0.0.20190705_beta",
						"api_url": "https:\/\/api.fastadmin.net"
					},
					"referer": null,
					"__PUBLIC__": "\/",
					"__ROOT__": "\/",
					"__CDN__": ""
				}
			};
		</script>
	</head>

	<body class="inside-header inside-aside ">
		<div id="main" role="main">
			<div class="tab-content tab-addtabs">
				<div id="content">
					<div class="row">
						<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
							<section class="content-header hide">
								<h1>
									控制台 <small>Control panel</small>
								</h1>
							</section>
							<!-- RIBBON -->
							<div id="ribbon">
								<ol class="breadcrumb pull-left">
									<li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> 控制台</a></li>
								</ol>
								<ol class="breadcrumb pull-right">
									<li><a href="javascript:;" data-url="/admin/general.config/general">常规管理</a></li>
									<li><a href="javascript:;" data-url="/admin/general/config">系统配置</a></li>
								</ol>
							</div>
							<!-- END RIBBON -->
							<div class="content">
								<style type="text/css">
									@media (max-width: 375px) {
										.edit-form tr td input {
											width: 100%;
										}

										.edit-form tr th:first-child,
										.edit-form tr td:first-child {
											width: 20%;
										}

										.edit-form tr th:nth-last-of-type(-n+2),
										.edit-form tr td:nth-last-of-type(-n+2) {
											display: none;
										}
									}

									.edit-form table>tbody>tr td a.btn-delcfg {
										visibility: hidden;
									}

									.edit-form table>tbody>tr:hover td a.btn-delcfg {
										visibility: visible;
									}
								</style>
								<div class="panel panel-default panel-intro">
									<div class="panel-heading">
										<!-- <div class="panel-lead"><em>系统配置</em>可以在此增改系统的变量和分组,也可以自定义分组和变量,如果需要删除请从数据库中删除</div> -->
										<ul class="nav nav-tabs">

											<li class="active"><a href="#basic" data-toggle="tab">基础配置</a></li>

											<li class=""><a href="#email" data-toggle="tab">邮件配置</a></li>

											<li class=""><a href="#distribution" data-toggle="tab">商家分配配置</a></li>

											<li class=""><a href="#alimama" data-toggle="tab">阿里妈妈配置</a></li>

											<li class=""><a href="#taobaoOpen" data-toggle="tab">淘宝开放平台</a></li>

											<li class=""><a href="#haodanku" data-toggle="tab">好单库配置</a></li>

											<li class=""><a href="#event" data-toggle="tab">活动配置</a></li>

											<li class=""><a href="#dictionary" data-toggle="tab">字典配置</a></li>
											<li>
												<a href="#addcfg" data-toggle="tab"><i class="fa fa-plus"></i></a>
											</li>
										</ul>
									</div>

									<div class="panel-body">
										<div id="myTabContent" class="tab-content">

											<div class="tab-pane fade active in" id="basic">
												<div class="widget-body no-padding">
													<form id="basic-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST"
													 action="/admin/general.config/edit">
														<table class="table table-striped">
															<thead>
																<tr>
																	<th width="15%">变量标题</th>
																	<th width="68%">变量值</th>
																	<th width="15%">变量名</th>
																	<th width="2%"></th>
																</tr>
															</thead>
															<tbody>
																<tr>
																	<td>站点名称</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[name]" value="恋空招商管理系统" class="form-control" data-rule="required"
																				 data-tip="请填写站点名称" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.name}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="name"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>备案号</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[beian]" value="" class="form-control" data-rule="" data-tip="粤ICP备15054802号-4" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.beian}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="beian"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>版本号</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[version]" value="1.0.4" class="form-control" data-rule="required"
																				 data-tip="如果静态资源有变动请重新配置该值" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.version}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="version"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>禁止IP</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<textarea name="row[forbiddenip]" class="form-control" data-rule="" rows="5" data-tip="一行一条记录"></textarea>
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.forbiddenip}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="forbiddenip"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>API密钥</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[apiKey]" value="asd456" class="form-control" data-rule="required"
																				 data-tip="只能为英文+数字的组合值" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.apiKey}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="apiKey"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>机器人服务器IP</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[robotServerIp]" value="127.0.0.1:8282" class="form-control" data-rule=""
																				 data-tip="请输入IP+端口，列如：127.0.0.1:8282" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.robotServerIp}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="robotServerIp"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>店铺信息机器人</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[shopinfoRobot]" value="127.0.0.1" class="form-control" data-rule=""
																				 data-tip="请输入店铺机器人IP" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.shopinfoRobot}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="shopinfoRobot"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>店铺信息账号</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[shopinfoAccount]" value="zhang156417320" class="form-control"
																				 data-rule="" data-tip="请输入采集店铺信息的联盟账号" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.shopinfoAccount}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="shopinfoAccount"><i class="fa fa-times"></i></a></td>
																</tr>
															</tbody>
															<tfoot>
																<tr>
																	<td></td>
																	<td>
																		<button type="submit" class="btn btn-success btn-embossed">确定</button>
																		<button type="reset" class="btn btn-default btn-embossed">重置</button>
																	</td>
																	<td></td>
																	<td></td>
																</tr>
															</tfoot>
														</table>
													</form>
												</div>
											</div>

											<div class="tab-pane fade " id="email">
												<div class="widget-body no-padding">
													<form id="email-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST"
													 action="/admin/general.config/edit">
														<table class="table table-striped">
															<thead>
																<tr>
																	<th width="15%">变量标题</th>
																	<th width="68%">变量值</th>
																	<th width="15%">变量名</th>
																	<th width="2%"></th>
																</tr>
															</thead>
															<tbody>
																<tr>
																	<td>邮件发送方式</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<select name="row[mail_type]" class="form-control selectpicker" data-tip="选择邮件发送方式">
																					<option value="0">Please select</option>
																					<option value="1" selected>SMTP</option>
																					<option value="2">Mail</option>
																				</select>
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.mail_type}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="mail_type"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>SMTP服务器</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[mail_smtp_host]" value="smtp.qq.com" class="form-control" data-rule=""
																				 data-tip="错误的配置发送邮件会导致服务器超时" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.mail_smtp_host}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="mail_smtp_host"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>SMTP端口</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[mail_smtp_port]" value="465" class="form-control" data-rule=""
																				 data-tip="(不加密默认25,SSL默认465,TLS默认587)" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.mail_smtp_port}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="mail_smtp_port"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>SMTP用户名</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[mail_smtp_user]" value="10000" class="form-control" data-rule=""
																				 data-tip="（填写完整用户名）" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.mail_smtp_user}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="mail_smtp_user"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>SMTP密码</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[mail_smtp_pass]" value="password" class="form-control" data-rule=""
																				 data-tip="（填写您的密码）" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.mail_smtp_pass}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="mail_smtp_pass"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>SMTP验证方式</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<select name="row[mail_verify_type]" class="form-control selectpicker" data-tip="（SMTP验证方式[推荐SSL]）">
																					<option value="0">None</option>
																					<option value="1">TLS</option>
																					<option value="2" selected>SSL</option>
																				</select>
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.mail_verify_type}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="mail_verify_type"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>发件人邮箱</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[mail_from]" value="10000@qq.com" class="form-control" data-rule=""
																				 data-tip="" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.mail_from}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="mail_from"><i class="fa fa-times"></i></a></td>
																</tr>
															</tbody>
															<tfoot>
																<tr>
																	<td></td>
																	<td>
																		<button type="submit" class="btn btn-success btn-embossed">确定</button>
																		<button type="reset" class="btn btn-default btn-embossed">重置</button>
																	</td>
																	<td></td>
																	<td></td>
																</tr>
															</tfoot>
														</table>
													</form>
												</div>
											</div>

											<div class="tab-pane fade " id="distribution">
												<div class="widget-body no-padding">
													<form id="distribution-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST"
													 action="/admin/general.config/edit">
														<table class="table table-striped">
															<thead>
																<tr>
																	<th width="15%">变量标题</th>
																	<th width="68%">变量值</th>
																	<th width="15%">变量名</th>
																	<th width="2%"></th>
																</tr>
															</thead>
															<tbody>
																<tr>
																	<td>员工限额</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="number" name="row[distribution_num]" value="800" class="form-control" data-tip="单个员工能拥有的最大待处理商家数"
																				 data-rule="" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.distribution_num}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="distribution_num"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>状态1</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[business_state1]" value="待招商团长审核" class="form-control" data-rule=""
																				 data-tip="请输入优质客户中状态栏的配置信息" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.business_state1}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="business_state1"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>状态2</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[business_state2]" value="待招商团长审核" class="form-control" data-rule=""
																				 data-tip="请输入优质客户中状态栏的配置信息" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.business_state2}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="business_state2"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>状态3</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[business_state3]" value="待招商团长审核" class="form-control" data-rule=""
																				 data-tip="请输入优质客户中状态栏的配置信息" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.business_state3}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="business_state3"><i class="fa fa-times"></i></a></td>
																</tr>
															</tbody>
															<tfoot>
																<tr>
																	<td></td>
																	<td>
																		<button type="submit" class="btn btn-success btn-embossed">确定</button>
																		<button type="reset" class="btn btn-default btn-embossed">重置</button>
																	</td>
																	<td></td>
																	<td></td>
																</tr>
															</tfoot>
														</table>
													</form>
												</div>
											</div>

											<div class="tab-pane fade " id="alimama">
												<div class="widget-body no-padding">
													<form id="alimama-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST"
													 action="/admin/general.config/edit">
														<table class="table table-striped">
															<thead>
																<tr>
																	<th width="15%">变量标题</th>
																	<th width="68%">变量值</th>
																	<th width="15%">变量名</th>
																	<th width="2%"></th>
																</tr>
															</thead>
															<tbody>
																<tr>
																	<td>账号名</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[alimama_name]" value="潮流sports" class="form-control" data-rule=""
																				 data-tip="请填写拥有高佣权限的阿里妈妈账号" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.alimama_name}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="alimama_name"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>pid</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[alimama_pid]" value="mm_33078595_44226157_435078697" class="form-control"
																				 data-rule="" data-tip="请填写账号与开放平台appkey对应的pid" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.alimama_pid}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="alimama_pid"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>所得税比率</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="number" name="row[alimama_incomeTaxRatio]" value="3" class="form-control" data-tip="阿里妈妈扣除的税率"
																				 data-rule="" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.alimama_incomeTaxRatio}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="alimama_incomeTaxRatio"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>服务费比率</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[alimama_serviceFeeRatio]" value="10" class="form-control" data-rule=""
																				 data-tip="阿里妈妈扣除的服务费比率" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.alimama_serviceFeeRatio}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="alimama_serviceFeeRatio"><i class="fa fa-times"></i></a></td>
																</tr>
															</tbody>
															<tfoot>
																<tr>
																	<td></td>
																	<td>
																		<button type="submit" class="btn btn-success btn-embossed">确定</button>
																		<button type="reset" class="btn btn-default btn-embossed">重置</button>
																	</td>
																	<td></td>
																	<td></td>
																</tr>
															</tfoot>
														</table>
													</form>
												</div>
											</div>

											<div class="tab-pane fade " id="taobaoOpen">
												<div class="widget-body no-padding">
													<form id="taobaoOpen-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST"
													 action="/admin/general.config/edit">
														<table class="table table-striped">
															<thead>
																<tr>
																	<th width="15%">变量标题</th>
																	<th width="68%">变量值</th>
																	<th width="15%">变量名</th>
																	<th width="2%"></th>
																</tr>
															</thead>
															<tbody>
																<tr>
																	<td>App Key</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[opentaobao_Key]" value="24917292" class="form-control" data-rule=""
																				 data-tip="请填写与阿里妈妈PID对应的App Key" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.opentaobao_Key}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="opentaobao_Key"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>App Secret</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[opentaobao_Secret]" value="3cf805dcc35690b7f984a228ee9623c7" class="form-control"
																				 data-rule="" data-tip="请填写在淘宝开放平台获取到的App Secret" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.opentaobao_Secret}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="opentaobao_Secret"><i class="fa fa-times"></i></a></td>
																</tr>
															</tbody>
															<tfoot>
																<tr>
																	<td></td>
																	<td>
																		<button type="submit" class="btn btn-success btn-embossed">确定</button>
																		<button type="reset" class="btn btn-default btn-embossed">重置</button>
																	</td>
																	<td></td>
																	<td></td>
																</tr>
															</tfoot>
														</table>
													</form>
												</div>
											</div>

											<div class="tab-pane fade " id="haodanku">
												<div class="widget-body no-padding">
													<form id="haodanku-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST"
													 action="/admin/general.config/edit">
														<table class="table table-striped">
															<thead>
																<tr>
																	<th width="15%">变量标题</th>
																	<th width="68%">变量值</th>
																	<th width="15%">变量名</th>
																	<th width="2%"></th>
																</tr>
															</thead>
															<tbody>
																<tr>
																	<td>APIKey</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[haodanku_apikey]" value="TaSdSDFss" class="form-control" data-rule=""
																				 data-tip="请填写好单库申请到的api" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.haodanku_apikey}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="haodanku_apikey"><i class="fa fa-times"></i></a></td>
																</tr>
															</tbody>
															<tfoot>
																<tr>
																	<td></td>
																	<td>
																		<button type="submit" class="btn btn-success btn-embossed">确定</button>
																		<button type="reset" class="btn btn-default btn-embossed">重置</button>
																	</td>
																	<td></td>
																	<td></td>
																</tr>
															</tfoot>
														</table>
													</form>
												</div>
											</div>

											<div class="tab-pane fade " id="event">
												<div class="widget-body no-padding">
													<form id="event-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST"
													 action="/admin/general.config/edit">
														<table class="table table-striped">
															<thead>
																<tr>
																	<th width="15%">变量标题</th>
																	<th width="68%">变量值</th>
																	<th width="15%">变量名</th>
																	<th width="2%"></th>
																</tr>
															</thead>
															<tbody>
																<tr>
																	<td>限制数量</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="number" name="row[event_limit]" value="30" class="form-control" data-tip="限制员工每月可发布自有活动的链接

数量"
																				 data-rule="required" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.event_limit}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="event_limit"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>公司统计</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<input type="text" name="row[event]" value="" class="form-control" data-rule="" data-tip="" />
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.event}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="event"><i class="fa fa-times"></i></a></td>
																</tr>
															</tbody>
															<tfoot>
																<tr>
																	<td></td>
																	<td>
																		<button type="submit" class="btn btn-success btn-embossed">确定</button>
																		<button type="reset" class="btn btn-default btn-embossed">重置</button>
																	</td>
																	<td></td>
																	<td></td>
																</tr>
															</tfoot>
														</table>
													</form>
												</div>
											</div>

											<div class="tab-pane fade " id="dictionary">
												<div class="widget-body no-padding">
													<form id="dictionary-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST"
													 action="/admin/general.config/edit">
														<table class="table table-striped">
															<thead>
																<tr>
																	<th width="15%">变量标题</th>
																	<th width="68%">变量值</th>
																	<th width="15%">变量名</th>
																	<th width="2%"></th>
																</tr>
															</thead>
															<tbody>
																<tr>
																	<td>分类类型</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<dl class="fieldlist" data-name="row[categorytype]">
																					<dd>
																						<ins>键名</ins>
																						<ins>键值</ins>
																					</dd>
																					<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a></dd>
																					<textarea name="row[categorytype]" class="form-control hide" cols="30" rows="5">{&quot;default&quot;:&quot;Default&quot;,&quot;page&quot;:&quot;Page&quot;,&quot;article&quot;:&quot;Article&quot;,&quot;test&quot;:&quot;Test&quot;}</textarea>
																				</dl>
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.categorytype}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="categorytype"><i class="fa fa-times"></i></a></td>
																</tr>
																<tr>
																	<td>配置分组</td>
																	<td>
																		<div class="row">
																			<div class="col-sm-8 col-xs-12">
																				<dl class="fieldlist" data-name="row[configgroup]">
																					<dd>
																						<ins>键名</ins>
																						<ins>键值</ins>
																					</dd>
																					<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a></dd>
																					<textarea name="row[configgroup]" class="form-control hide" cols="30" rows="5">{&quot;basic&quot;:&quot;Basic&quot;,&quot;email&quot;:&quot;Email&quot;,&quot;distribution&quot;:&quot;商家分配配置&quot;,&quot;alimama&quot;:&quot;阿里妈妈配置&quot;,&quot;taobaoOpen&quot;:&quot;淘宝开放平台&quot;,&quot;haodanku&quot;:&quot;好单库配置&quot;,&quot;event&quot;:&quot;活动配置&quot;,&quot;dictionary&quot;:&quot;Dictionary&quot;}</textarea>
																				</dl>
																			</div>
																			<div class="col-sm-4"></div>
																		</div>

																	</td>
																	<td>{$site.configgroup}</td>
																	<td><a href="javascript:;" class="btn-delcfg text-muted" data-name="configgroup"><i class="fa fa-times"></i></a></td>
																</tr>
															</tbody>
															<tfoot>
																<tr>
																	<td></td>
																	<td>
																		<button type="submit" class="btn btn-success btn-embossed">确定</button>
																		<button type="reset" class="btn btn-default btn-embossed">重置</button>
																	</td>
																	<td></td>
																	<td></td>
																</tr>
															</tfoot>
														</table>
													</form>
												</div>
											</div>
											<div class="tab-pane fade" id="addcfg">
												<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="./add">
													<div class="form-group">
														<label for="type" class="control-label col-xs-12 col-sm-2">类型:</label>
														<div class="col-xs-12 col-sm-4">
															<select name="row[type]" class="form-control selectpicker">
																<option value="string" selected>字符</option>
																<option value="text">文本</option>
																<option value="editor">编辑器</option>
																<option value="number">数字</option>
																<option value="date">日期</option>
																<option value="time">时间</option>
																<option value="datetime">日期时间</option>
																<option value="select">列表</option>
																<option value="selects">列表(多选)</option>
																<option value="image">图片</option>
																<option value="images">图片(多)</option>
																<option value="file">文件</option>
																<option value="files">文件(多)</option>
																<option value="switch">开关</option>
																<option value="checkbox">复选</option>
																<option value="radio">单选</option>
																<option value="array">数组</option>
																<option value="custom">Custom</option>
															</select>
														</div>
													</div>
													<div class="form-group">
														<label for="group" class="control-label col-xs-12 col-sm-2">分组:</label>
														<div class="col-xs-12 col-sm-4">
															<select name="row[group]" class="form-control selectpicker">
																<option value="basic" selected>基础配置</option>
																<option value="email">邮件配置</option>
																<option value="distribution">商家分配配置</option>
																<option value="alimama">阿里妈妈配置</option>
																<option value="taobaoOpen">淘宝开放平台</option>
																<option value="haodanku">好单库配置</option>
																<option value="event">活动配置</option>
																<option value="dictionary">字典配置</option>
															</select>
														</div>
													</div>
													<div class="form-group">
														<label for="name" class="control-label col-xs-12 col-sm-2">变量名:</label>
														<div class="col-xs-12 col-sm-4">
															<input type="text" class="form-control" id="name" name="row[name]" value="" data-rule="required; length(3~30); remote(general/config/check)" />
														</div>
													</div>
													<div class="form-group">
														<label for="title" class="control-label col-xs-12 col-sm-2">变量标题:</label>
														<div class="col-xs-12 col-sm-4">
															<input type="text" class="form-control" id="title" name="row[title]" value="" data-rule="required" />
														</div>
													</div>
													<div class="form-group">
														<label for="value" class="control-label col-xs-12 col-sm-2">变量值:</label>
														<div class="col-xs-12 col-sm-4">
															<input type="text" class="form-control" id="value" name="row[value]" value="" data-rule="" />
														</div>
													</div>
													<div class="form-group hide" id="add-content-container">
														<label for="content" class="control-label col-xs-12 col-sm-2">数据列表:</label>
														<div class="col-xs-12 col-sm-4">
															<textarea name="row[content]" id="content" cols="30" rows="5" class="form-control" data-rule="required">value1|title1
value2|title2</textarea>
														</div>
													</div>
													<div class="form-group">
														<label for="tip" class="control-label col-xs-12 col-sm-2">提示信息:</label>
														<div class="col-xs-12 col-sm-4">
															<input type="text" class="form-control" id="tip" name="row[tip]" value="" data-rule="" />
														</div>
													</div>
													<div class="form-group">
														<label for="rule" class="control-label col-xs-12 col-sm-2">校验规则:</label>
														<div class="col-xs-12 col-sm-4">
															<input type="text" class="form-control" id="rule" name="row[rule]" value="" />
														</div>
													</div>
													<div class="form-group">
														<label for="extend" class="control-label col-xs-12 col-sm-2">扩展属性:</label>
														<div class="col-xs-12 col-sm-4">
															<textarea name="row[extend]" id="extend" cols="30" rows="5" class="form-control" data-rule=""></textarea>
														</div>
													</div>
													<div class="form-group">
														<label class="control-label col-xs-12 col-sm-2"></label>
														<div class="col-xs-12 col-sm-4">
															<button type="submit" class="btn btn-success btn-embossed">确定</button>
															<button type="reset" class="btn btn-default btn-embossed">重置</button>
														</div>
													</div>

												</form>

											</div>
										</div>
									</div>
								</div>

							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<script src="./require.min.js" data-main="./js/backend.min.js?v=1.0.4"></script>
	</body>
</html>
